package sprachkern;

public class FormatierteAusgabe {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		double d = 12345.6789;
		System.out.printf("Preis = %20.2f EUR%n", d);
		System.out.printf("Neue Zeile\n");
		
		d= 123456.0;
		System.out.printf("%e\n",d);
		
		int x=255;
		System.out.printf("Hexadez.:\t %x\t%X", x, x);
		
		System.out.printf("%s\n", "Moin");
		System.out.printf("%d x %f = %f\n", 5,9.0,5.0*9);	// Typsensibel!
	}
}
